#Rules.py

#Agencies must should inherit

class FRCP:
    def __init__(self):
        if case.jurisdiction != "Federal":
            return "This is not a federal matter."
        if case.criminal == True:
            return "This is not a civil case. Please use rules of criminal procedure."

    class filing:
        def filing():
            case.civil_action = True  #FRCP 3

    class pleading:
        definition = "A formal document in which a party to a legal proceeding (esp. a civil lawsuit) sets forth or responds to allegations, claims, denials, or defenses. • In federal civil procedure, the main pleadings are the plaintiff's complaint and the defendant's answer." #Black's Law Dictionary


    class complaint(pleading): #'complaint' inherits from "pleading", because Black's law said that complaints are a type of pleading
            definition = "The initial pleading that starts a civil action and states the basis for the court's jurisdiction, the basis for the plaintiff's claim, and the demand for relief." #Black's Law Dictionary: "complaint"
            

            
    
    class summons:
        class contents: ##FRCP 4(a)(1)
            court_name = ""
            plaintiffs = ""
            defendants = ""
            directed_to = ""#defendants #FRCP 4(a)(1)(C)
            #plaintiff_attorney.name = ""
            #plaintiff_attorney.address = ""
            time_to_appear = "date"
            notice_of_failure_to_appear = "notify the defendant that a failure to appear and defend will result in a default judgment against the defendant for the relief demanded in the complaint" #FRCP4(a)(1)(E)
            clerk_signature = ""
            clerk_signature = True
            court_seal = True
        class amendments:
            permissible = False
            #FRCP 4(a)(2)"The court may permit a summons to be amended."
        def issue(): #FRCP 4(b)
            #present summons to clerk for signature and seal
            if party.plaintiff.forma_pauperis == True:
                pass
            

    class service:
        def __init__():
            if FRCP.complaint.complete == FALSE:
                return "The complaint has not been completed yet"
            if FRCP.summons.complete == FALSE:
                return "The summons papers have not been completed yet."

#        summons_service
#        complaint_service
            
#           The plaintiff is responsible for having the summons and complaint served within the time allowed by Rule 4(m) and must furnish the necessary copies to the person who makes service.

#(2) By Whom. Any person who is at least 18 years old and not a party may serve a summons and complaint.

#(3) By a Marshal or Someone Specially Appointed. At the plaintiff's request, the court may order that service be made by a United States marshal or deputy marshal or by a person specially appointed by the court. The court must so order if the plaintiff is authorized to proceed in forma pauperis under 28 U.S.C. §1915 or as a seaman under 28 U.S.C. §1916.


    def file_a_complaint(court):
        case.court = court
        civil_action = True
        rules.complaint = True

    def summons(plaintff, defendant, plaintiff_attorney, court):
        if FRCP.complaint() == False:
            return "File a complaint first."

    def save():
        f = open(self.filename, 'w')
        cPickle.dump(self, f)
        f.close

    
